package atguigu.service.impl;

import atguigu.dao.AccountDao;
import atguigu.pojo.Account;
import atguigu.service.AccountService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.sql.SQLException;
import java.util.List;
@Service
public class AccountServiceImpl implements AccountService {
    @Autowired
    private AccountDao accountDao;

    @Override
    public List<Account> queryAccount() {
        List<Account> accountList = null;
        try {
            accountList = accountDao.queryAccount();
        } catch (SQLException e) {
            e.printStackTrace();
        }
        return accountList;
    }
}
